import react from 'react'
export default class tab extends react.Component<TabProps> {
  state: Readonly<TabProps>;
  constructor(props: TabProps) {
    super(props)
    // 参数参考文档
    this.state = { 
      name: props.name, 
      children: props.children 
    }
    
  }
  render(): react.ReactNode {
    // 拿到
    const { children } = this.state
    return (
      // 展示
      <div>{children}</div>
    )
  }
}